package com.lots.service.impl;

import com.lots.domain.entity.Advertisement;
import com.lots.mapper.AdvertisementMapper;
import com.lots.service.AdvertisementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdvertisementServiceImpl implements AdvertisementService {
    @Autowired
    private AdvertisementMapper advertisementMapper;
    /**
     * 获取所有广告
     * @return
     */
    @Override
    public List<Advertisement> getList() {
        return advertisementMapper.selectAll();
    }
}
